package cn.cvzhanshi.wechatpush.controller;

import cn.cvzhanshi.wechatpush.config.Pusher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("send")
public class senController {
    @GetMapping()
    public void send(String diyBz) {
        HashMap<String, Object> map = new HashMap<>();
        map.put("diyBz", diyBz);
        Pusher.push(map);
    }
}
